<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>
  <head> 
	<%@ include file="/platform/style.jsp"%>
	<script src="<%=path %>/plugins/imgshow/zoom.min.js"></script>
	<style>
		
	</style>
	<script>
	function query(){
		$w.execForm();

	}
	function showinfo(id){
		$w.openDialog({url:ctx+'/order/OrderPage@backorderinfo.page?bean.id='+id,title:"查看退货订单信息 ",w:700,h:450,maximized:true,afterClose:function(re){
			if(re)query();
		}});
	}
	function tuihauth(id,status){
		window.parent.$w.openDialog({url:ctx+'/order/OrderPage@tuihauthShow.page?bean.orderid='+id+"&bean.status="+status,title:"退货审核",w:600,h:300,afterClose:function(re){
			if(re){
				$w.closeCurrWin("ok");
			}
		}});
	}
	</script>
  </head>
  
  <body class="easyui-layout">
	<div data-options="region:'center'" class="bodybg" id="mmm">
		<!-- 查询区域 -->
		<form id="queryForm" action="/order/OrderPage@backorders.page" method="post">
		<w:hidden bind="pageNum"/>
		<w:hidden bind="pageSize_"/>
		<table cellpadding="0" cellspacing="0" style="margin-top:5px">
			<tr>
				<td width="80" align="right">订单编号：</td><td><w:text bind="bean.code" style="width:90px;"/></td>
				<td width="80" align="right">订单状态：</td><td><select name="bean.backtag"><option value="">-全部-</option><w:option bind="bean.backtag" value="1">待审核</w:option><w:option bind="bean.backtag" value="2">同意退货</w:option><w:option bind="bean.backtag" value="3">已拒绝</w:option><w:option bind="bean.backtag" value="5">已 完成</w:option><w:option bind="bean.backtag" value="4">已取消</w:option></select></td>
				<td width="80" align="right">申请时间：</td><td><w:text bind="bean.start" styleClass="easyui-datebox" style="width:95px"/>-<w:text bind="bean.end" styleClass="easyui-datebox" style="width:95px"/></td>
				<td>
					&nbsp;<a href="javascript:;" class="easyui-linkbutton" iconCls="icon_search" onclick="query()">查询</a>
				</td>
			</tr>
		</table>
		<div class="ui_line" style="margin-top:10px"></div>
		<!-- 数据列表区域 -->
			<table class="ui-table" width="100%" cellpadding="1" cellspacing="1" data-options="showPage:false">
				<thead>
					<tr class="ui_th">
						<td>订单编号</td>
						<td>买家</td>
						<td>联系电话</td>
						<td>金额</td>
						<td>申请时间</td>
						<td>退货状态</td>
						<td width="90" align="center">操作</td>
					</tr>
				</thead>
				<tbody>
				<w:iterate id="info" bind="resultList_">
					<tr class="ui_td">
						<td><w:write bind="#info.code"/></td>
						<td><w:write bind="#info.username"/></td>
						<td><w:write bind="#info.backphone"/></td>
						<td>￥<w:write bind="#info.summoney"/></td>
						<td><w:write bind="#info.applytime" format="yyyy-MM-dd HH:mm:ss"/></td>
						<td><w:write bind="#info.backtag" format="[,待审核,同意退货,已拒绝,已取消,已完成]"/></td>
						<td align="center">
							<p style="margin:3px;padding:0px;"><a href="javascript:void(0);" class="ui_btn" onclick="showinfo(<w:write bind="#info.id"/>)">查看订单</a></p>
						</td>
					</tr>
				</w:iterate>
				<w:switch><w:case bind="resultList_.size()==0"><tr class="ui_td"><td colspan="12">没有订单信息！</td></tr></w:case></w:switch>
				</tbody>
			</table>
		</form>
	</div>
	
  </body>
</html>
